// src/mock/index.js
import Mock from 'mockjs'

Mock.mock('/api/admin/login', 'post', {
  code: 200,
  data: {
    token: 'mock_admin_token',
    user: {
      id: 1,
      username: 'admin',
      role: 'admin'
    }
  }
})

Mock.mock('/api/users', 'get', {
  code: 200,
  data: {
    list: [
      {
        id: 1,
        username: 'admin',
        email: 'admin@example.com',
        role: 'admin',
        status: 'active',
        createTime: '2024-01-01 10:00:00'
      }
    ],
    total: 1
  }
})